package com.iwop.moto.dao;

import com.iwop.moto.model.SPayPassCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by user on 2017/1/3.
 */
public interface PayPassCodeDao extends IGenericDao<SPayPassCode, Long> {

    @Override
    void insert(SPayPassCode sPayPassCode);

    @Override
    void batchSave(List<SPayPassCode> list);

    @Override
    void batchDelete(List<Long> list);

    @Override
    void update(SPayPassCode sPayPassCode);

    void updateByUserId(SPayPassCode sPayPassCode);


    void deleteById(String userId);

    @Override
    SPayPassCode getById(Long aLong);

    @Override
    List<SPayPassCode> list(SPayPassCode sPayPassCode);

    @Override
    List<SPayPassCode> getbyIdList(@Param("ids") List<Long> list);

    @Override
    int count(SPayPassCode sPayPassCode);

    SPayPassCode getByUserId(@Param("userId") String userId);


    SPayPassCode getPayPassCode(String userId);

    void updateErroCount();
}
